package tc.jv.task1.myfirstpackage;

public class MySecondClass
{
	private int a, b;
	
	// CONSTRUCTORS
	
	public MySecondClass()
	{
		System.out.println("MySecondClass has created");
	}
	
	public MySecondClass(int a, int b)
	{
		this();
		setA(a);
		setB(b);
	}
	
	// ACCESSORS
	
	public int getA()
	{
		return a;
	}
	
	public void setA(int a)
	{
		this.a = a;
	}
	
	public int getB()
	{
		return b;
	}
	
	public void setB(int b)
	{
		this.b = b;
	}
	
	// METHODS
	
	public int calculate()
	{
		return getA() + getB();
	}
}